import VueRouter from 'vue-router'
// import RelationPage from '../components/relationPage/relationPage';
// import MainPage from '../components/mainPage/mainPage';
// import DetailMessage from '../components/detail_message/detailMessage';
import login from '../components/login/index';

const router = new VueRouter({
  // mode: 'history',
  routes: [
    { path: '/login', component: login},
    { path: '/relation_page', component: resolve => require(['../components/relationPage/relationPage'], resolve)},
    { path: '/detail_message', component: resolve => require(['../components/detail_message/detailMessage'], resolve) },
    // { path: '/', component: resolve => require(['../components/mainPage/mainPage'], resolve) },
    { path: '/page', component: resolve => require(['../page.vue'], resolve) },
    { path: '/', component: resolve => require(['../components/newbigdata/home'], resolve) },
    { path: '/du', component: resolve => require(['../components/newbigdata/home'], resolve) }
  ]
});
export default router;